package com.zerui.manager.web;

import com.zerui.cola.dto.PageResponse;
import com.zerui.cola.dto.Response;
import com.zerui.manager.web.cmd.*;
import com.zerui.manager.web.vo.OpenPlanDeviceVO;
import com.zerui.manager.web.vo.OpenPlanVO;

/**
 * @Author wh
 * @create_time 2023-08-23 11:07
 */
public interface OpenPlanService {

	Response add(OpenPlanAddCmd openPlanAddCmd);

	Response update(OpenPlanUpdateCmd openPlanUpdateCmd);

	Response deleteById(Long id);

	Response enableById(Long id);

    PageResponse<OpenPlanVO> getPageList(OpenPlanQryCmd openPlanQryCmd);

	Response association(OpenPlanDeviceAddCmd openPlanDeviceAddCmd);

	Response delete(OpenPlanDeviceAddCmd openPlanDeviceAddCmd);

	PageResponse<OpenPlanDeviceVO> getDevicePageList(OpenPlanDeviceQryCmd openPlanQryCmd);

    void deleteDeviceById(Long deviceId);
}
